package business.report.impl;

import business.report.EnvironmentalProtectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.EnvironmentalProtection;
import report.domain.EnvironmentalProtectionCriteria;
import report.mapper.EnvironmentalProtectionMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "eProtectionService")
public class EnvironmentalProtectionServiceImpl implements EnvironmentalProtectionService{
    @Autowired
    EnvironmentalProtectionMapper environmentalProtectionMapper;

    @Override
    public List<EnvironmentalProtection> getEnvironmentalProtection() {
        EnvironmentalProtectionCriteria criteria = new EnvironmentalProtectionCriteria();
        criteria.createCriteria().getAllCriteria();
        return environmentalProtectionMapper.selectByExample(criteria);
    }
}
